﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class ChangePalletDestinationMessage : BaseTibcoMessage<ChangePalletDestinationMessageBody>
    {
        public ChangePalletDestinationMessage()
        {

        }
        public ChangePalletDestinationMessage(ChangePalletDestinationMessageBody body, string inboxName = "", string listener = "") : base("ChangePalletDestinationRequest", body, inboxName, listener)
        {
        }

        public void SetReplyName()
        {
            this.HEADER.MESSAGENAME = "ChangePalletDestinationReply";
        }
    }


    public class ChangePalletDestinationMessageBody : EventMessageBase
    {
        public ChangePalletDestinationMessageBody()
        {
        }

        [XmlElement("TRANSPORTJOBNAME")]
        public string TransportJobName { get; set; }
        [XmlElement("PALLETNAME")]
        public string PalletName { get; set; }
        [XmlElement("OLDDESTINATIONMACHINENAME")]
        public string OldDestinationMachineName { get; set; }
        [XmlElement("OLDDESTINATIONPOSITIONTYPE")]
        public string OldDestinationPositionType { get; set; }
        [XmlElement("OLDDESTINATIONPOSITIONNAME")]
        public string OldDestinationPositionName { get; set; }
        [XmlElement("OLDDESTINATIONZONENAME")]
        public string OldDestinationZoneName { get; set; }
        [XmlElement("NEWDESTINATIONMACHINENAME")]
        public string NewDestinationMachineName { get; set; }
        [XmlElement("NEWDESTINATIONPOSITIONTYPE")]
        public string NewDestinationPositionType { get; set; }
        [XmlElement("NEWDESTINATIONPOSITIONNAME")]
        public string NewDestinationPositionName { get; set; }
        [XmlElement("NEWDESTINATIONZONENAME")]
        public string NewDestinationZoneName { get; set; }
        [XmlElement("PRIORITY")]
        public string Priority { get; set; }
        [XmlElement("LANGUAGE")]
        public string Language { get; set; }
    }
}
